/**
 * Bestpay.com.cn Inc.
 * Copyright (c) 2011-2019 All Rights Reserved.
 */
package com.suxiaoxiao.springbootlearn.designpattern.strategypattern.duck;

import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.Duck;
import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.behaviorimpl.fly.FlyNoWay;
import com.suxiaoxiao.springbootlearn.designpattern.strategypattern.behaviorimpl.quack.Quack;

/**
 * desc
 *
 * @author zhaorongzhang
 * @version ModelDuck.java, v 0.1 2019/12/28 3:22 下午 zhaorongzhang Exp $$
 */
public class ModelDuck extends Duck {

    public ModelDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("I'm a model duck");
    }

}